package com.cheer.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("参评新增或者上传")
public class ReferenceInOrUpParam {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("简要事迹")
    @NotNull(message = "简要事迹不能为空")
    @Length( max = 500, message = "简要事迹长度不能超过 500")
    private String achievement;

    @ApiModelProperty("推荐表")
    @NotNull(message = "推荐表不能为空")
    private String recommend;

    @ApiModelProperty("事迹材料")
    @NotNull(message = "事迹材料不能为空")
    private String story;

    @ApiModelProperty("工作图片")
    @NotEmpty(message = "工作图片不能为空")
    private List<String> evidences;


}
